package com.gin.pixiv.api

import com.gin.pixiv.response.PixivResponse
import com.gin.pixiv.response.commission.CommissionBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * 约稿相关API
 * @author BX-Gin
 * @since 2024/3/2 15:05
 */
interface CommissionApi {
    /**
     *  查询用户收到的约稿请求
     * https://www.pixiv.net/ajax/commission/page/users/20670838/request?lang=zh
     */
    @GET("ajax/commission/page/users/{userId}/request")
    fun getRequest(@Path("userId") userId: Long): Call<PixivResponse<CommissionBody>>

    /**
     * 查询用户发出的约稿请求
     * https://www.pixiv.net/ajax/commission/page/users/67898338/request/sent?lang=zh
     */
    @GET("ajax/commission/page/users/{userId}/request/sent")
    fun getRequestSent(@Path("userId") userId: Long): Call<PixivResponse<CommissionBody>>


}